package ShiYan;

public class Example22 {
    public static void main(String[] args) {
        int[] arr = { 4, 1, 6, 3, 9, 8 };
        int min = arr[0];
        for (int x = 1; x < arr.length; x++) {
            if (arr[x] < min ) {
                min= arr[x];
            }
        }
        System.out.println("min =" + min );
    }

}
